import Loadable from '../utils/Loadable'
const routes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/home",
        component: Loadable(() => import("../pages/Home")),
        children: [{
            path: "/home",
            redirect: "/home/vegetable"
        },
        {
            path: "/home/vegetable",
            title: "首页",
            component: Loadable(() => import("../pages/Home/homepage")),
            icon: "icon-shouye"
        }, {
            path: "/home/type",
            title: "分类",
            component: Loadable(() => import("../pages/Home/vegetableType")),
            icon: "icon-gengduo"
        }, {
            path: "/home/shoppingcar",
            title: "购物车",
            component: Loadable(() => import("../pages/Home/shoppingCar")),
            icon: "icon-gouwuche"
        }, {
            path: "/home/my",
            title: "我的",
            component: Loadable(() => import("../pages/Home/My")),
            icon: "icon-wode"
        }
        ]
    },
    {
        path: "/login",
        component: Loadable(() => import("../pages/Login"))
    }
]
export default routes